package com.note.gateway.service.internal;

import com.note.common.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Package：com.note.gateway.service
 * @Name：UserClientService
 * @Author：热伊木
 * @Email：uyevan@163.com
 * @Date：2024-04-30-11:55
 * @Description：用户模块信息获取接口
 */
@Component
@FeignClient(value = "note-user", contextId = "note-user-getUserInfo")
public interface UserService {
    /*@Async*/
    @GetMapping("/user/internal/fetchUserInfoGateway/{username}/{internalKey}")
    User getUserInfo(@PathVariable("username") String username,
                     @PathVariable("internalKey") String internalKey);
}
